import request from '@/utils/request'

// 查询分类用户关联列表
export function listDataClassificationUser(query) {
  return request({
    url: '/dataClassificationUser/dataClassificationUser/list',
    method: 'get',
    params: query
  })
}

// 查询分类用户关联详细
export function getDataClassificationUser(id) {
  return request({
    url: '/dataClassificationUser/dataClassificationUser/' + id,
    method: 'get'
  })
}

// 新增分类用户关联
export function addDataClassificationUser(data) {
  return request({
    url: '/dataClassificationUser/dataClassificationUser',
    method: 'post',
    data: data
  })
}

// 修改分类用户关联
export function updateDataClassificationUser(data) {
  return request({
    url: '/dataClassificationUser/dataClassificationUser',
    method: 'put',
    data: data
  })
}

// 删除分类用户关联
export function delDataClassificationUser(id) {
  return request({
    url: '/dataClassificationUser/dataClassificationUser/' + id,
    method: 'delete'
  })
}
